<?php

namespace App;

use Illuminate\Database\Eloquent\Model;

/**
 * App\UserMoneyRecord
 *
 * @property int $id
 * @property float|null $money
 * @property string|null $status 余额的状态
 * @property \Carbon\Carbon|null $created_at
 * @property \Carbon\Carbon|null $updated_at
 * @property int|null $user_id
 * @method static \Illuminate\Database\Eloquent\Builder|\App\UserMoneyRecord whereCreatedAt($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\UserMoneyRecord whereId($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\UserMoneyRecord whereMoney($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\UserMoneyRecord whereStatus($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\UserMoneyRecord whereUpdatedAt($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\UserMoneyRecord whereUserId($value)
 * @mixin \Eloquent
 */
class UserMoneyRecord extends Model
{
    //用户余额记录表
    protected $table='user_money_records';
    const STATUS_CONSUME='consume';//消费
    const STATUS_WITHDRAW='withdraw'; //提现
    const STATUS_SETTLE='settle';//结算
    public static $STATUSMAP=[
        self::STATUS_CONSUME=>'消费',
        self::STATUS_SETTLE=>'结算',
        self::STATUS_WITHDRAW=>'提现',
    ];
}
